import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

Vue.config.productionTip = false
Vue.use(ElementUI);

//全局自定义指令
Vue.directive('title', { //单个修改标题
  inserted: function (el, binding) {
      document.title = el.dataset.title
  }
})